I agree with Ben the best option is to overhaul the apps and do it right. However you could use a Team Studio tool I think it is called configurator..
http://www.teamstudio.com/tsv3/teamstudio.nsf/pages/180607DADB22C52585256BF000620156?opendocument&cc=us
You can find servernames in entire applicatons.